/**
 * @author Ilya
 * @version 0.1
 */


;(function() {
	
	$.fn.xmlTree = function(params) {
		
		// static vars
		var options_default = {};
		var node = {
			tagName: undefined,
			text: undefined,
			attributes: {},
			childrens: {}
		};
		
		// main vars
		var structure = {};
		var options = {};
		
		//private functions
		var functInitTree = function() {
			structurep[0] = new node();
			structurep[0].tagName = 'root';
			
			var ui_node = $('<td/>');
			ui_node.addClass('root closed');
			
			$(this).html('<table/>');
			$(this).find('table').addClass('tree_table');
			$(this).find('table').append(ui_node.wrap('<tr/>'));
		};
			
		//public functions
		
		//constructor code
		options = $.extend(options_default, params);
		
		return this;
	}
	
})(jQuery)
